<?php /*a:1:{s:59:"D:\WAMP\wamp64\www\jj\application\index\view\common\top.php";i:1551146985;}*/ ?>

<div class="indexHeader clear"><a href="/" class="indexLogo fl"></a>
    <ul class="indexNav fl clear">
        <li  <?php if ($nav_id==1) {?> class="current" <?php }?>><a href="/">首页</a></li>
        <li><a href="/video">微电影</a></li>
        <li><a href="/yunying">企业代运营</a></li>
        <li><a href="/peixun">个人培训</a></li>
        <li><a href="/news/index">新闻资讯</a></li>
        <li><a href="javascript:void (0)" id="userinfo">个人中心</a></li>
    </ul>
    <?php if ($status==0) {?>
        <div class="btn fr"><a href="<?php echo url('login/login_page')?>" class="loginBtn">登录</a><a href="<?php echo url('login/register_page')?>" class="registerBtn">注册</a></div>

    <?php }?>
</div>


            <script>
                $(function () {
                    $("#userinfo").click(function () {
                        $.post('/common/islogin',function (data) {
                            if (data['status']!=1){
                                window.location.href="/login/login_page"
                            }else{
                                window.location.href='/user/order'
                            }

                        },'json')
                    })
                })
            </script>